package net.xujialiang.XTestRPA.Repository.Tenant;

import net.xujialiang.XTestRPA.Entity.Tenant.XRPATenantOrder;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.CrudRepository;

import java.util.Optional;

public interface TenantOrderRepository extends CrudRepository<XRPATenantOrder, Integer> {
    Optional<XRPATenantOrder> findByTtc(String ttc);
    Page<XRPATenantOrder> findAll(Pageable page);
    Page<XRPATenantOrder> findByTtc(String ttc, Pageable page);
}
